/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.kj.service;

import java.util.List;

import com.jeesite.modules.kj.entity.MemberIntegralRank;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.kj.entity.KjTeamMember;
import com.jeesite.modules.kj.dao.KjTeamMemberDao;

/**
 * kj_team_memberService
 * @author hzy
 * @version 2021-07-17
 */
@Service
@Transactional(readOnly=true)
public class KjTeamMemberService extends CrudService<KjTeamMemberDao, KjTeamMember> {

	/**
	 * 获取单条数据
	 * @param kjTeamMember
	 * @return
	 */
	@Override
	public KjTeamMember get(KjTeamMember kjTeamMember) {
		return super.get(kjTeamMember);
	}

	/**
	 * 查询分页数据
	 * @param kjTeamMember 查询条件
	 * @param kjTeamMember.page 分页对象
	 * @return
	 */
	@Override
	public Page<KjTeamMember> findPage(KjTeamMember kjTeamMember) {
		return super.findPage(kjTeamMember);
	}

	/**
	 * 保存数据（插入或更新）
	 * @param kjTeamMember
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(KjTeamMember kjTeamMember) {
		super.save(kjTeamMember);
	}

	/**
	 * 更新状态
	 * @param kjTeamMember
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(KjTeamMember kjTeamMember) {
		super.updateStatus(kjTeamMember);
	}

	/**
	 * 删除数据
	 * @param kjTeamMember
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(KjTeamMember kjTeamMember) {
		super.delete(kjTeamMember);
	}


	public List<MemberIntegralRank> teamMemberRank(KjTeamMember kjTeamMember){
		return dao.teamMemberRank(kjTeamMember);
	}
	public MemberIntegralRank teamMemberRankNum(KjTeamMember kjTeamMember){
		return dao.teamMemberRankNum(kjTeamMember);
	}
}
